﻿<%@ Page Title="医院预采购计划生产企业明细" Language="C#" MasterPageFile="~/Master/MasterPage_New.master" AutoEventWireup="true" CodeBehind="HospitalPurchasePlanByCompanySC.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.Statistics.HospitalPurchasePlanByCompanySC" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
 

</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <div class="search">
        <div class="search_item">
              
        <table>
            <tr>
                <td>
                    <table class="querylist">
                         
                         <tr>
                    
                            <th>
                                流水号：
                            </th>
                            <td align="left">
                                <asp:TextBox ID="txtProcureCatalogID" runat="server"></asp:TextBox>
                            </td> 
                 
                 <th>
                                生产企业：
                            </th>
                            <td align="left">
                                <asp:TextBox ID="txtCompanySC" runat="server"></asp:TextBox>
                                
                            </td>
                    
                            <th>
                                排序字段：
                            </th>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlSortFields"> 
                                    <asp:ListItem Value="ProcureCatalogID" Text="流水号"></asp:ListItem>
                                    <asp:ListItem Value="PurchaseCount" Text="实际采购数量"></asp:ListItem>                                
                                    <asp:ListItem Value="PlanCount" Text="计划采购数量"></asp:ListItem>
                                    <asp:ListItem Value="OutNumber" Text="计划与实际差额"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <th>
                                排序方式：
                            </th>
                            <td align="left">
                                <asp:DropDownList runat="server" ID="ddlSort">
                                    <asp:ListItem Value="DESC" Text="降序"></asp:ListItem>                                
                                    <asp:ListItem Value="ASC" Text="升序"></asp:ListItem>
                                </asp:DropDownList>
                            </td> 
                </tr>
                        
                    </table>
                </td>
                <td width="100px">
                    <hz:HzButton ID="btnQuery" runat="server" Text="查询" CssClass="searchbtn" OnClick="btnQuery_Click" />
                </td>
            </tr>
        </table>
   
        </div>
        
    </div >
    
    <div class="listip">
        <ul>
            <li><asp:Label ID="lblTitle" runat="server"></asp:Label>
            </li>
        </ul>
    </div>
    <div class="navDiv">&nbsp;</div>
    
    <asp:GridView ID="gvwPSLInfo" runat="server" AutoGenerateColumns="False" CssClass="mainlist" OnRowCommand="gvwPSLInfo_RowCommand" 
        AllowSorting="True" EmptyDataText="暂无符合条件的数据！">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager_CompanyPS.PageSize * (AspNetPager_CompanyPS.CurrentPageIndex - 1)%></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField> 
            <asp:BoundField DataField="ProcureCatalogID" HeaderText="流水号" ReadOnly="true" /> 
            <asp:BoundField DataField="ProductName" HeaderText="通用名" ReadOnly="true" />
           <%--<asp:BoundField DataField="MedicineModelName" HeaderText="剂型" ReadOnly="true" />
            <asp:BoundField DataField="Pack" HeaderText="采购规格" />
            <asp:BoundField DataField="Unit" HeaderText="采购单位" /> --%>
            <asp:BoundField DataField="ProcurePrice" HeaderText="供应价格" ReadOnly="true" /> 
            <asp:BoundField DataField="CompanyName_SC" HeaderText="生产企业" ReadOnly="true" />  
            <asp:BoundField DataField="PurchaseCount" HeaderText="实际采购数量" ReadOnly="true" /> 
            <asp:BoundField DataField="PlanCount" HeaderText="计划采购数量" ReadOnly="true" />  
            <asp:BoundField DataField="OutNumber" HeaderText="计划采购与实际采购差额" ReadOnly="true" />              
            <asp:TemplateField HeaderText ="明细">
                <ItemTemplate> 
                     <hz:HzLinkButton ID="lbnPro" runat="server" CausesValidation="True" CommandName="lbnPro" CommandArgument='<%#Eval("ProcureCatalogID") %>' Text="明细" />
                </ItemTemplate>
            </asp:TemplateField>
            
         </Columns>  
    </asp:GridView>
    <div class="page"> <span style="width: 70%; text-align: right; float: right">
            <webdiyer:AspNetPager ID="AspNetPager_CompanyPS" runat="server" AlwaysShow="true"
                OnPageChanged="AspNetPager_CompanyPS_PageChanged">
            </webdiyer:AspNetPager>
        </span>
    </div> 
  
    <br />
    <div class="listctrl">
            <hz:HzButton ID="HzButton1" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" />  
    
      <hz:HzButton ID="btnBack" runat="server" CssClass="btn" Text="返回" onclick="btnBack_Click" />
  </div>
    <div class="listip">
        <ul>
            <li>说明:<span>计划采购与实际采购差额=实际采购数量-计划采购数量。</span>
            </li> 
        </ul>
    </div>
</asp:Content>
